package com.ruoyi.operation.order.speed.service;

import com.ruoyi.operation.order.speed.domain.Speed;
import com.ruoyi.operation.order.tablestatis.domain.TableStatis;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @Author king
 * @create 2019/4/13 16:16
 */
public interface ISpeedService {
    /**
     * 查询所有的数据
     * @return
     */
    List<Speed> allSpeedCount(Speed speed);

    /**
     * 根据录单员和产品id获取对应的加新数
     * @param createBy
     * @param productId
     * @return
     */
    String getNewCoustomerCount(String createBy,String productId,String beginTime,String endTime);
    /**
     * 根据录单员和产品id获取对应的老客户数
     * @param createBy
     * @param productId
     * @return
     */
    String getOldCoustomerCount(String createBy,String productId,String beginTime,String endTime);
    /**
     * 导出
     * @param speed
     * @return
     */
    void exportSpeed(Speed speed, HttpServletRequest request, HttpServletResponse response) throws  Exception;
}
